//
//  TBRBuinessRentAppointmentCell.m
//  TBRentClient
//
//  Created by tonbright on 2018/5/11.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "TBRBuinessRentAppointmentCell.h"


@interface TBRBuinessRentAppointmentCell()
@property (weak, nonatomic) IBOutlet UIView *view_green;
@property (weak, nonatomic) IBOutlet UIView *view_red;

@end

@implementation TBRBuinessRentAppointmentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _view_red.layer.cornerRadius = 6.5;
    _view_green.layer.cornerRadius = 6.5;
}

- (void)refreshUI {
    TBRRentAllMessageModel *allMessageModel = [TBRRentAllMessageModel shareAllMessageModel];
    _lbe_onCarPlace.text = [HelpObject isBlankString:allMessageModel.onPlace] ? @"正在获取上车地点..." : allMessageModel.onPlace;
    _lbe_offCarPlace.text = [HelpObject isBlankString:allMessageModel.offPlace] ? @"您在哪下车" : allMessageModel.offPlace;
    _lbe_yuYueTime.text = [HelpObject isBlankString:allMessageModel.onCarTime] ? @"预约时间" : allMessageModel.onCarTime;
}

- (IBAction)btnClick:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(BuinessRentAppointmentCellBtnClick:)]) {
        [self.delegate BuinessRentAppointmentCellBtnClick:sender.tag];
    }
}
@end
